package com.squirrel.common.param.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
@ApiModel("注册参数")
public class RegisterParam {

    @ApiModelProperty(value = "用户名", required = true)
    private String nickname;

    @ApiModelProperty(value = "邮箱", required = true)
    @Pattern(regexp = "^[A-Za-z0-9\\u4e00-\\u9fa5]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$")
    private String mail;

    @ApiModelProperty(value = "密码", required = true)
    private String password;


    @ApiModelProperty(value = "验证码", required = true)
    private String authCode;
}